class Rectangle {
  double width;
  double height;

  Rectangle(this.width, this.height); // 默认构造函数

  Rectangle.square(double side)
      : width = side,
        height = side; // 命名构造函数
}
